package com.zhangh.summer.admin.support.prometheus.thread;

import lombok.Data;

/**
 * @description: TODO
 * @author: zhanghui  zhanghlucky@163.com
 * @create: 2020-11-26 17:18
 **/
@Data
public class ThreadBO {
    private String id;
    private String name;
    private String namePattern;
    private String stateName;
    private String className;
    private String threadGroupName;
    private String isAlive;
    private String isDaemon;
    private String isInterrupted;
    private String priority;

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof ThreadBO) {
            ThreadBO s = (ThreadBO) obj;
            return this.id.equals(s.id);
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }

}
